package com.frank.subject.application.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.frank.subject.application.dto.SubjectLikedDto;
import com.frank.subject.domain.entity.SubjectLikedBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2025/3/12
 * @description
 */
@Mapper
public interface SubjectLikedDtoConvert {

    SubjectLikedDtoConvert INSTANCE = Mappers.getMapper(SubjectLikedDtoConvert.class);

    SubjectLikedBo convertDtoToBo(SubjectLikedDto subjectLikedDto);

    Page<SubjectLikedDto> convertBoPageToDtoPage(Page<SubjectLikedBo> subjectPage);
}
